package com.jjpro.requestservice;

import com.jjpro.entity.lock.VerificationCodeRequest;
import com.jjpro.entity.user.LoginOutRequest;
import com.jjpro.entity.user.LoginRequest;
import com.jjpro.entity.user.RegisterRequest;
import com.jjpro.utils.AppletResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("EhomeUser")
public interface UserInofRequestService {

    @RequestMapping(value = "/user/send/verificationCode")
    AppletResult getVerificationCode(@RequestBody VerificationCodeRequest verificationCodeRequest);

    @RequestMapping(value = "/user/register")
    AppletResult register(@RequestBody RegisterRequest registerRequest);

    @RequestMapping(value = "/user/login")
    AppletResult login(@RequestBody LoginRequest loginRequest);

    @RequestMapping(value = "/user/loginOut")
    AppletResult loginOut(@RequestBody LoginOutRequest loginOutRequest);
}
